package cn.kust.serviceinterestpoint.mapper;

import cn.kust.serviceinterestpoint.entity.InterestVideo;
import cn.kust.serviceinterestpoint.entity.vo.PictureAndVideoDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author microTourism
 * @since 2022-07-25
 */
@Mapper
public interface InterestVideoMapper extends BaseMapper<InterestVideo> {
    /**
     * 根据兴趣点id查询他的所有视频
     * @param interestId
     * @return
     */
    List<PictureAndVideoDTO> selectVideosByInterestId(Long interestId);
}
